//
//  JFBSotreInfoDS.h
//  ios-supplier
//
//  Created by feynmanyuan on 15/4/17.
//  Copyright (c) 2015年 feynmanyuan. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface JFBStoreInfoDS : NSObject
@property (nonatomic, assign) NSUInteger ID;
// 店铺名字
@property (nonatomic, strong) NSString *storeName;
// 营业时间
@property (nonatomic, strong) NSString *workTime;
// 联系电话
@property (nonatomic, strong) NSArray *callcenterMobile;
// 起送金额
@property (nonatomic, assign) NSDecimalNumber *min;
// 配送范围
@property (nonatomic, assign) NSUInteger distribution;
// 配送时段
@property (nonatomic, strong) NSArray *timeRange;
// 店主姓名
@property (nonatomic, strong) NSString *masterName;
// 店主手机
@property (nonatomic, strong) NSString *masterMobile;
// 店铺地址
@property (nonatomic, strong) NSString *storeAddress;
// 店铺状态（开，关店）
@property (nonatomic, assign) NSUInteger isStoreOpen;

@property (nonatomic,copy) NSString *city_id;
@property (nonatomic,copy) NSString *city_name;


+ (NSURLSessionDataTask *)loadStoreInfo:(void (^)(JFBStoreInfoDS *storeInfo, NSError *error))block storeID:(NSUInteger)storeID;
+ (NSURLSessionDataTask *)updateStoreInfo:(void (^)(BOOL isSuccess, NSString *message, JFBStoreInfoDS *storeInfo, NSError *error))block storeInfo:(JFBStoreInfoDS*)storeInfo;
+ (NSURLSessionDataTask *)updateOperating:(void (^)(BOOL isSuccess, NSString *message, JFBStoreInfoDS *storeInfo, NSError *error))block currentStatus:(NSUInteger)currentStatus;
+ (NSURLSessionDataTask *)login:(void (^)(BOOL isSuccess, NSString *message, NSDictionary *data, NSError *error))block username:(NSString*)username passwod:(NSString*)password;
+ (NSURLSessionDataTask *)registerDevice:(void (^)(BOOL isSuccess, NSString *message, NSError *error))block  pushId:(NSString*)pushId;
//+ (NSURLSessionDataTask *)checkVersion:(void (^)(BOOL isSuccess, NSString *message, NSString *updateURL, NSError *error))block currentVersion:(NSString*)currentVersion;


+(JFBStoreInfoDS*)loadFromDB;

@end
